Skip to content

Conversation

travagliad
Copy link
Collaborator

Introduce scripts and configuration files for setting up Valkey, including primary, replica, and sentinel configurations, along with a cleanup script and integration into the existing setup framework.


- name: Display generated Valkey password
debug:
msg: "Generated Valkey password: {{ valkey_password }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to have one password not to generate one, because then our tests would not have a way to know the correct password.


- name: Add the primary to monitoring
community.docker.docker_container_exec:
container: "{{ pmm_server_name }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PMM client should be installed inside of valkey container please check setup for Percona server version 8.4

container: "{{ pmm_server_name }}"
command: pmm-admin add valkey --cluster=valkey-cluster --environment=valkey-test --username=default --password="{{ valkey_password }}" --service-name=sentinel{{ item }}-svc --host=sentinel-{{ item }} --port={{ sentinel_start_port }} --custom-labels='role=sentinel'
loop: "{{ range(1, sentinel_count + 1) | list }}"
ignore_errors: yes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants